var express = require("express");
var router = express.Router();
// 解析,用req.body获取post参数
var bodyParser = require("body-parser");

var jsonParser = bodyParser.json(); // for parsing application/json
//引入自定义的controller
const MovieController = require("../controllers/movie");

/** 获取电影信息 */
router.post("/info",jsonParser,MovieController.info);

module.exports = router;